#include "demo.h"
#include <stdio.h>


int main(int argc, char **argv)
{
	Demo* demo = Create_DemoObj(1, 2);
	Derived* derived = Create_DerivedObj(100, 200, 300);

	printf("demo::getI() = %d\n", getI(demo));
	printf("demo::getJ() = %d\n", getJ(demo));
	printf("demo::add() = %d\n", add(demo, 10));

	printf("derived::getI() = %d\n", getI(derived));
	printf("derived::getJ() = %d\n", getJ(derived));
	printf("derived::getK() = %d\n", getK(derived));
	printf("derived::add() = %d\n", add(derived, 10));

	Destory_DemoObj(derived);
	Destory_DemoObj(demo);
	return 0;
}